package com.anloyal.oauth2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Anloyal
 * @version V1.0
 * @Package com.anloyal.auth
 * @Description: 认证服务器
 * @date 2018/7/29
 */

@SpringBootApplication
@RestController
@EnableResourceServer      //开启资源服务器
@EnableAuthorizationServer //开启认证服务器
public class Oauth2ServerApplication {


    public static void main(String[] args) {
        SpringApplication.run(Oauth2ServerApplication.class, args);
    }



}
